package com.wpre.springlog;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: LianBao
 * Date: 2024-11-02
 * Time: 12:09
 */
@RestController
@RequestMapping("/Test")
public class LogController {
    private static Logger logger = LoggerFactory.getLogger(LogController.class);

    @RequestMapping("/demo")
    public void func() {
        logger.info("info级别");
        logger.debug("debug级别");
        logger.trace("trace级别");
        logger.error("error级别");
        logger.warn("warn级别");
    }


}
